<template>
	<h3>SearchMain</h3>
	<p>{{search}}</p>
	<SearchComponent @searchEvent="getSearch"/>
</template>
<script>
import SearchComponent from './SearchComponent.vue';
export default {
	components: {
		SearchComponent
	},
	data(){
		return {
			search:""
		}
	},
	methods: {
		getSearch(data) {
			this.search = data;
		}
	}
}
</script>